package com.cneport.das.common.model.param;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.*;
import java.io.Serializable;

/**
 * @Desc 参数服务client响应报文
 * @Ver 1.0
 * @Author GavinZhang
 * @Company 东方物通科技有限（北京）公司
 * @Date 2021-12-13 11:48:36
 */
@XmlRootElement(name = "ParamResponse")
@XmlAccessorType(XmlAccessType.FIELD)
@Data
public class ClientResponse implements Serializable {
    @XmlElement(name = "ParamResp")
    private QryRetn qryRetn;
    @XmlElement(name = "ParamData")
    private BizData bizData;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    @AllArgsConstructor
    @NoArgsConstructor
    @XmlType
    public static class QryRetn {
        private String guid;
        private String respTime;
        private String respCode;
        private String respInfo;
        private Long dealTime;
        private String paraType;
        private String signInfo;
    }

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    @AllArgsConstructor
    @NoArgsConstructor
    @XmlType
    @XmlRootElement
    public static class BizData {
        private String dataForm;
        private String data;
    }

}
